package lab02.test36;

public class Undergraduate extends Student{

    public Undergraduate(String name,String calss,
                         double math, double english,
                         double computer){
        super(name,calss,math,english,computer);
    }
    @Override
    public void Undergraduate() {
        double average = super.average(math,english,computer);
        if (average > 80){
            System.out.println("优秀");
        }else if (average > 70){
            System.out.println("良好");
        }else if (average > 60){
            System.out.println("一般");
        }else if (average > 50){
            System.out.println("及格");
        }else if (average < 50){
            System.out.println("不及格");
        }
    }

    @Override
    public void Postgraduate() {

    }
}
